package com.ruoyi.logistic.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.logistic.domain.NetworkFeeThroughManage;
import com.ruoyi.logistic.domain.PageDate;
import com.ruoyi.logistic.domain.vo.NetworkFeeThroughManageVo;
import com.ruoyi.logistic.mapper.NetworkFeeThroughManageMapper;
import com.ruoyi.logistic.service.NetworkFeeThroughManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NetworkFeeThroughManageServiceImpl implements NetworkFeeThroughManageService {
    @Autowired
    private NetworkFeeThroughManageMapper networkFeeThroughManageMapper;
    @Override
    public List<NetworkFeeThroughManage> selectAll(PageDate pageDate) {
        PageHelper.startPage(pageDate);
        return networkFeeThroughManageMapper.selectAll();
    }

    @Override
    public Boolean insert(NetworkFeeThroughManage networkFeeThroughManage) {
        return networkFeeThroughManageMapper.insert(networkFeeThroughManage);
    }

    @Override
    public Boolean update(NetworkFeeThroughManage networkFeeThroughManage) {
        return networkFeeThroughManageMapper.update(networkFeeThroughManage);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return networkFeeThroughManageMapper.deleteById(id);
    }

    @Override
    public NetworkFeeThroughManage findById(Integer id) {
        return networkFeeThroughManageMapper.findById(id);
    }

    @Override
    public List<NetworkFeeThroughManage> search(NetworkFeeThroughManageVo networkFeeThroughManageVo) {
        PageHelper.startPage(networkFeeThroughManageVo.getPageDate());
        return networkFeeThroughManageMapper.search(networkFeeThroughManageVo);
    }




}
